home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 May: Tool Chest / Dev.CD May 98 TC.toast / Tool Chest / Development Kits / MPW Related / helpful MPW scripts / SaveMenu < prev   
Encoding:
Text File  |  1993-09-17  |  740 b   |  31 lines  |  [TEXT/MPS ]

  1. #####################
  2. # Copyright © 1993 Apple Computer, Inc. All rights reserved.
  3. # Copyright © 1992 Kevin O'Mahoney, All rights reserved.
  4. #
  5. # Customized MPW for Kevin O'Mahoney
  6. #
  7. #  Created:    Wednesday, November 11, 1992
  8. #
  9. # This Script will save the shell menu named as the input
  10. #    parameter to an executable script to allow later
  11. #    restoration of the menu.
  12. #
  13. #####################
  14. #Echo  "#    Saving Menu “{1}”";
  15. #Echo  "#        to file “{MPW.KOM}UserScripts:{1}Menu”";
  16.  
  17. Begin;
  18.  
  19. Echo "#    Remove old menu";
  20. Echo "";
  21. Echo "    Set Exit 0";
  22. Echo "    DeleteMenu {1} ≥ Dev:Null";
  23.     #Echo "    AddMenu KOM "SelfDestruct" "Deletemenu KOM"";
  24.     #Echo "    Deletemenu KOM";
  25. Echo "";
  26. Echo "#    Create the menu";
  27. Echo "";
  28. AddMenu {1}
  29.  
  30. End > "{MPW.KOM}UserScripts:{1}Menu"
  31.